define([
    'text!templates/diary/tablerow.html',
    'jquery',
    'underscore',
    'backbone'
], function(template) {

    var DiaryTableRowView = Backbone.View.extend({
        render: function() {
            var compiledTemplate = _.template(template,
                    {model: this.model.toJSON()});
            this.$el.html(compiledTemplate);
        }
    });

    return DiaryTableRowView;
});


